package panda.natalia.gothread.suspend.instrument.codesample;

/**
 * a simple framework of java fiber
 *
 * @Author: scpanda2007
 * @Date: 2019/12/3 11:28
 *
 * // class version 52.0 (52)
 * // access flags 0x21
 * public class panda/natalia/gothread/suspend/instrument/codesample/TestPrivateMethod {
 *
 *   // compiled from: TestPrivateMethod.java
 *
 *   // access flags 0x1
 *   public <init>()V
 *    L0
 *     LINENUMBER 9 L0
 *     ALOAD 0
 *     INVOKESPECIAL java/lang/Object.<init> ()V
 *     RETURN
 *    L1
 *     LOCALVARIABLE this Lpanda/natalia/gothread/suspend/instrument/codesample/TestPrivateMethod; L0 L1 0
 *     MAXSTACK = 1
 *     MAXLOCALS = 1
 *
 *   // access flags 0x2
 *   private privateMethod()V
 *    L0
 *     LINENUMBER 11 L0
 *     RETURN
 *    L1
 *     LOCALVARIABLE this Lpanda/natalia/gothread/suspend/instrument/codesample/TestPrivateMethod; L0 L1 0
 *     MAXSTACK = 0
 *     MAXLOCALS = 1
 *
 *   // access flags 0x9
 *   public static main([Ljava/lang/String;)V
 *    L0
 *     LINENUMBER 14 L0
 *     NEW panda/natalia/gothread/suspend/instrument/codesample/TestPrivateMethod
 *     DUP
 *     INVOKESPECIAL panda/natalia/gothread/suspend/instrument/codesample/TestPrivateMethod.<init> ()V
 *     INVOKESPECIAL panda/natalia/gothread/suspend/instrument/codesample/TestPrivateMethod.privateMethod ()V
 *    L1
 *     LINENUMBER 15 L1
 *     RETURN
 *    L2
 *     LOCALVARIABLE args [Ljava/lang/String; L0 L2 0
 *     MAXSTACK = 2
 *     MAXLOCALS = 1
 * }
 *
 *
 * 注意到 <init> 方法 和 privateMethod 方法都是 INVOKESPECIAL
 *
 */
public class TestPrivateMethod {

    private void privateMethod() {}

    public static void main(String[] args) {
        new TestPrivateMethod().privateMethod();
    }
}
